API Documentation
Static Public Member Functions | List of all members
nkAstraeus::lua::nkAstraeusWrap::LogWrapper Class Referencefinal

Wraps the nkAstraeus::LogManager, and offers functions to use it from a scripting environment. More...

Static Public Member Functions

static void updateEnvironment (nkScripts::Environment *env)
 
static nkScripts::OutputValue log (const nkScripts::DataStack &stack)
 

Detailed Description

Wraps the nkAstraeus::LogManager, and offers functions to use it from a scripting environment.

Member Function Documentation

◆ updateEnvironment()

static void nkAstraeus::lua::nkAstraeusWrap::LogWrapper::updateEnvironment ( nkScripts::Environment env)
static

Updates a given environment and set it up to use all functions wrapped by this wrapper.

Parameters
envThe environment to set up.

◆ log()

static nkScripts::OutputValue nkAstraeus::lua::nkAstraeusWrap::LogWrapper::log ( const nkScripts::DataStack stack)
static

Wrapper function for LogManager::log. It also overrides the default printing method of the scripting environment.

nkLogLine("Hey") ;
print("Hey") ;
Parameters
stackThe parameter stack.
Returns
The output value, empty.

The documentation for this class was generated from the following file: